package com.zch.controller;

import cn.hutool.core.util.RandomUtil;
import com.zch.entity.Result;
import com.zch.entity.utils.DuanxinUtil;
import com.zch.service.EditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
@RequestMapping("/edit")
public class EditController {
    @Autowired
    private EditService editService;



    @GetMapping("sendSms/{phone}")
    public Result sendSms(@PathVariable String phone){

        //5.返回结果
        return editService.sendSms(phone);
    }



}
